<?php
/**
 * Created by Command.
 * User: Vito
 */

namespace app\admin\curd\water_ele_price;

use app\common\curd\Save;
use app\model\WaterElePrice;
use app\exception\MessageException;
class WaterElePriceSave extends Save
{
    //验证器
    protected $validate = [];
    //追加数据
    protected $appendParams = [];
    //允许新增的数据字段
    protected $field = [];
    // protected function saveMiddleware($next, $params)
    // {
    //     $where[] = ['type', '=', $params['type']];
    //     $where[] = ['bottom', '>', $params['bottom']];
    //     $res = WaterElePrice::where($where)->find();
    //     if ($res) {
    //         throw new MessageException('收费区间的谷值已存在');
    //     }
    //     return $next($params);
    // }
}